<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>My Profile</title>
	<f:metadata>
		  <f:viewParam name="init" value="#{profileBean.init}"/>
	</f:metadata>
</h:head>
<h:body>

	<h:form>

		<p:messages id="messages" showDetail="true" autoUpdate="true" />

		<p:panel id="mainPanel" header="User and Company Information" styleClass="noBorderGrid"> 
		
			<p:panelGrid columns="2" style="margin-top:10px;margin-bottom:10px;" styleClass="noBorderGrid">

				<h:outputText  value="User Id" style="font-weight:bold;"/>
				<h:outputText  value="#{profileBean.userName}"  style="font-weight:normal;"/>

				<h:outputText value="User Roles" style="font-weight:bold;"/>
				<h:outputText value="#{profileBean.userRoles}" required="true" style="width:150px;font-weight:normal;"/>

			</p:panelGrid>
			
			<p:separator style="margin-left:10px;"/>

			<p:panelGrid columns="2" style="margin-top:10px;margin-bottom:10px;" styleClass="noBorderGrid" rendered="#{profileBean.selectedCompany != null}">

				<h:outputText  value="Company Code" style="font-weight:bold;"/>
				<h:outputText  value="#{profileBean.selectedCompany.companyCode}"  style="font-weight:normal;"/>

				<h:outputText value="Company Name" style="font-weight:bold;"/>
				<h:outputText value="#{profileBean.selectedCompany.companyName}" required="true" style="width:150px;font-weight:normal;"/>

			</p:panelGrid>
		
		
		</p:panel>

	</h:form>
</h:body>
</html>